package com.nt.oam.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.nt.common.annotation.Excel;
import com.nt.common.core.domain.BaseEntity;

/**
 * 数据库资产对象 ant_database_asset
 *
 * @author JZFeng
 * @date 2025-02-05
 */
@TableName(resultMap = "com.nt.oam.mapper.AntDatabaseAssetMapper.AntDatabaseAssetResult" )
public class AntDatabaseAsset extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 数据库资产信息
     */
    @TableId(value = "database_asset_id" , type = IdType.AUTO)
    private Long databaseAssetId;

    /**
     * 医院id
     */
    private Long hospitalId;

    /**
     * 项目id
     */
    private Long projectId;

    /**
     * 资产id
     */
    private Long assetId;

    /**
     * 数据库名称
     */
    @Excel(name = "数据库名称" )
    private String databaseName;

    /**
     * 医院名称
     */
    @Excel(name = "医院名称" )
    private String hospitalName;

    /**
     * 项目名称
     */
    @Excel(name = "项目名称" )
    private String projectName;

    /**
     * 资产名称
     */
    @Excel(name = "资产名称" )
    private String assetName;

    /**
     * ip地址
     */
    @Excel(name = "ip地址" )
    private String ipLocation;

    /**
     * 账号
     */
    @Excel(name = "账号" )
    private String accountNumber;

    /**
     * 密码
     */
    @Excel(name = "密码" )
    private String password;

    /**
     * 实例名
     */
    private String instanceName;

    /**
     * 数据库备份方式
     */
    private String databaseBackupMode;

    /**
     * 备份文件位置
     */
    private String backupFileLocation;

    /**
     * 数据库版本
     */
    private String databaseVersion;

    /**
     * 数据库类型
     */
    private String databaseType;

    /**
     * 附件信息
     */
    private String databaseFile;

    /**
     * 创建人
     */
    private String createPerson;

    /**
     * 更新人
     */
    private String updatePerson;

    /**
     * 是否删除
     */
    private Integer isDeleted;
    /**
     * 是否正在修改, 0-不在修改， 1-正在修改
     */
    private Integer isModify;

    public void setDatabaseAssetId(Long databaseAssetId) {
        this.databaseAssetId = databaseAssetId;
    }

    public Long getDatabaseAssetId() {
        return databaseAssetId;
    }

    public void setHospitalId(Long hospitalId) {
        this.hospitalId = hospitalId;
    }

    public Long getHospitalId() {
        return hospitalId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public Long getProjectId() {
        return projectId;
    }

    public void setAssetId(Long assetId) {
        this.assetId = assetId;
    }

    public Long getAssetId() {
        return assetId;
    }

    public void setDatabaseName(String databaseName) {
        this.databaseName = databaseName;
    }

    public String getDatabaseName() {
        return databaseName;
    }

    public void setHospitalName(String hospitalName) {
        this.hospitalName = hospitalName;
    }

    public String getHospitalName() {
        return hospitalName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setAssetName(String assetName) {
        this.assetName = assetName;
    }

    public String getAssetName() {
        return assetName;
    }

    public void setIpLocation(String ipLocation) {
        this.ipLocation = ipLocation;
    }

    public String getIpLocation() {
        return ipLocation;
    }

    public void setAccountNumber(String accountNumber) {
        this.accountNumber = accountNumber;
    }

    public String getAccountNumber() {
        return accountNumber;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public void setInstanceName(String instanceName) {
        this.instanceName = instanceName;
    }

    public String getInstanceName() {
        return instanceName;
    }

    public void setDatabaseBackupMode(String databaseBackupMode) {
        this.databaseBackupMode = databaseBackupMode;
    }

    public String getDatabaseBackupMode() {
        return databaseBackupMode;
    }

    public void setBackupFileLocation(String backupFileLocation) {
        this.backupFileLocation = backupFileLocation;
    }

    public String getBackupFileLocation() {
        return backupFileLocation;
    }

    public void setDatabaseVersion(String databaseVersion) {
        this.databaseVersion = databaseVersion;
    }

    public String getDatabaseVersion() {
        return databaseVersion;
    }

    public void setDatabaseType(String databaseType) {
        this.databaseType = databaseType;
    }

    public String getDatabaseType() {
        return databaseType;
    }

    public void setDatabaseFile(String databaseFile) {
        this.databaseFile = databaseFile;
    }

    public String getDatabaseFile() {
        return databaseFile;
    }

    public void setCreatePerson(String createPerson) {
        this.createPerson = createPerson;
    }

    public String getCreatePerson() {
        return createPerson;
    }

    public void setUpdatePerson(String updatePerson) {
        this.updatePerson = updatePerson;
    }

    public String getUpdatePerson() {
        return updatePerson;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsModify(Integer isModify) {
        this.isModify = isModify;
    }

    public Integer getIsModify() {
        return isModify;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("databaseAssetId" , getDatabaseAssetId())
                .append("hospitalId" , getHospitalId())
                .append("projectId" , getProjectId())
                .append("assetId" , getAssetId())
                .append("databaseName" , getDatabaseName())
                .append("hospitalName" , getHospitalName())
                .append("projectName" , getProjectName())
                .append("assetName" , getAssetName())
                .append("ipLocation" , getIpLocation())
                .append("accountNumber" , getAccountNumber())
                .append("password" , getPassword())
                .append("instanceName" , getInstanceName())
                .append("databaseBackupMode" , getDatabaseBackupMode())
                .append("backupFileLocation" , getBackupFileLocation())
                .append("databaseVersion" , getDatabaseVersion())
                .append("databaseType" , getDatabaseType())
                .append("databaseFile" , getDatabaseFile())
                .append("createTime" , getCreateTime())
                .append("createPerson" , getCreatePerson())
                .append("updateTime" , getUpdateTime())
                .append("updatePerson" , getUpdatePerson())
                .append("isDeleted" , getIsDeleted())
                .append("isModify" , getIsModify())
                .toString();
    }
}
